﻿using DbOperation;
using AME.Logger;
using Serilog;


try
{

    LoggerClient.CreateSerilogClient();

    Log.Information("Starting create database...");

    CreateDB dB = new();
    dB.CreateDatabase();

    //CreateDB.UseSqlSugar();

    Log.Information("Database created success!");
}
catch (Exception ex)
{
    Log.Error($"Error: {ex.Message}");
    Log.Error($"Stack Trace: {ex.StackTrace}");
    Console.ReadLine();
    throw;
}